package com.service.business.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.business.merchant.controller.rep.MerchantPageRep;
import com.service.business.merchant.controller.rep.MerchantRep;
import com.service.business.merchant.controller.rep.MerchantSelfRep;
import com.service.business.merchant.controller.req.MerchantEnterReq;
import com.service.business.merchant.controller.req.MerchantPageReq;
import com.service.business.merchant.controller.req.MerchantUpdateReq;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.Merchant;


/**
 * 商家信息表
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2020-03-28 12:54:56
 */
public interface MerchantService extends IService<Merchant> {

    CommonPageRep<MerchantPageRep> page(MerchantPageReq pageReq);

    /**
     * 商家申请入驻
     * @param enterReq
     */
    void applyEnter(MerchantEnterReq enterReq);

    MerchantSelfRep detail();

    void update(MerchantUpdateReq updateReq);

    MerchantRep detail(String merchantNo);

    Merchant getByMemberId(Integer memberId);

    Merchant getByMemberIdAndStatus(Integer memberId);

    Merchant getByMerchantNo(String merchantNo);

    Merchant getByMerchantNoAndStatus(String merchantNo);

}

